﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GameLibrary.Interfaces
{
    [Serializable]
    public class IInfo : IMapObject
    {
        #region IMapObject Members

        public uint ID { get; private set; }

        public Position Location { get; private set; }
        public void SetLocation(Position pos)
        {
            this.Location = pos;
        }

        public uint OwnerID { get; private set; }
        public void SetOwnerID(uint ownerID)
        {
            this.OwnerID = ownerID;
        }

        #endregion

        #region constructor

        public IInfo(uint id, Position pos, uint ownerID)
        {
            this.ID = id;
            this.Location = pos;
            this.OwnerID = ownerID;                 
        }

        public IInfo(IInfo info)
        {
            this.ID = info.ID;
            this.Location = info.Location;
            this.OwnerID = info.OwnerID;
        }

        #endregion
    }
}
